home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / LIFE6__ / PROTO / U / LIFE_4A.C < prev    next >
Text File  |  1991-08-16  |  8KB  |  310 lines

  1. /*  Life_4a */
  2.  
  3. /* File name: Life_4a.c */
  4. /* Function: Handle a Window */
  5. /* History: 8/16/91 Original by Prototyper 3.0   */
  6.  
  7.  
  8. #include "PCommonLife6.h"    /* Common */
  9. #include "Common_Life6.h"    /* Common */
  10. #include "PUtils_Life6.h"    /* General Utilities */
  11. #include "Utils_Life6.h"    /* General Utilities */
  12.  
  13. #include "About_Life.h"    /* Modal Dialog */
  14.  
  15. #include "Life_4a.h"    /* This file */
  16.  
  17.  
  18.  
  19.  
  20. /* ======================================================= */
  21.  
  22.  
  23.  
  24. /* ======================================================= */
  25.  
  26. /* Routine: U_Init_Life_4a */
  27. /* Purpose: Initialize our window data to not in use yet */
  28.  
  29. void U_Init_Life_4a()
  30. {
  31.  
  32. }
  33.  
  34.  
  35. /* ======================================================= */
  36.  
  37. /* Routine: U_Close_Life_4a */
  38. /* Purpose: Close out the window */
  39.  
  40. void U_Close_Life_4a()
  41. {
  42.         /* Our window is   WPtr_Life_4a  */
  43.  
  44. }                                                                                /* End of procedure */
  45.  
  46.  
  47. /* ======================================================= */
  48.  
  49. /* Routine: U_Resized_Life_4a */
  50. /* Purpose: We were resized or zoomed, update the scrolling scrollbars */
  51. /*     OldRect is the size of the window before the resize */
  52. /*     Use   WPtr_Life_4a^.PortRect  for the new size  */
  53.  
  54. void U_Resized_Life_4a(OldRect)                                         /* Resized this window */
  55. Rect    *OldRect;
  56. {
  57.         /* Our window is   WPtr_Life_4a  */
  58. }                                                                                /* End of function */
  59.  
  60.  
  61.  
  62. /* ======================================================= */
  63.  
  64. /* Routine: U_Moved_Life_4a */
  65. /* Purpose: We were moved, possibly to another screen and screen depth */
  66. /*     OldRect is the size of the window before the resize */
  67. /*     Use   WPtr_Life_4a^.PortRect  for the new size  */
  68.  
  69. void U_Moved_Life_4a(OldRect)                                          /* Moved this window */
  70. Rect    *OldRect;
  71. {
  72.         /* Our window is   WPtr_Life_4a  */
  73. }                                                                                /* End of procedure */
  74.  
  75.  
  76. /* ======================================================= */
  77.  
  78. /* Routine: U_Update_Life_4a */
  79. /* Purpose: Update our window */
  80.  
  81. void U_Update_Life_4a()
  82. {
  83.         /* Our window is   WPtr_Life_4a  */
  84. }                                                                                /* End of procedure */
  85.  
  86. /* ======================================================= */
  87.  
  88. /* Routine: U_Open_Life_4a */
  89. /* Purpose: Open our window */
  90.  
  91. void U_Open_Life_4a()
  92. {
  93.  
  94.  
  95.  
  96.         if (WPtr_Life_4a != NIL)                                             /* See if  opened OK */
  97.             {
  98.  
  99.             }                                                                      /* End for if (MyWindow<>nil) */
  100.  
  101. }                                                                                /* End of procedure */
  102.  
  103.  
  104. /* ======================================================= */
  105.  
  106. /* Routine: U_Activate_Life_4a */
  107. /* Purpose: We activated or deactivated. */
  108.  
  109. void U_Activate_Life_4a(Do_An_Activate)                             /* Activated or deactivated this window */
  110. Boolean    Do_An_Activate;
  111. {
  112.  
  113.         if (Do_An_Activate == TRUE)                                       /* Handle the activate */
  114.             {
  115.  
  116.             }                                                                      /* End for activate */
  117.         else
  118.             {                                                                      /* Start of deactivate */
  119.  
  120.             }                                                                      /* End for deactivate */
  121.  
  122. }                                                                                /* End of procedure */
  123.  
  124.  
  125. /* ======================================================= */
  126.  
  127. /* Routine: U_DoButton_Life_4a */
  128. /* Purpose: Handle extra buttons in our window */
  129. /*     RefCon = The RefCon of the button that was pressed */
  130. /*     theControl = The ControlHandle of the button that was pressed */
  131.  
  132. void U_DoButton_Life_4a(RefCon,  theControl)
  133. long        RefCon;
  134. ControlHandle    theControl;
  135. {                                                                                /* Handle U_DoButton_ */
  136.  
  137. switch (RefCon)                                                             /* Select correct button */
  138. {
  139.         case Res_Ctrl_GO:                                                    /* GO, button */
  140.                     break;
  141.  
  142.         case Res_Ctrl_Rect_hotspot1_1:                                  /* Rect_hotspot1_1, hotspot */
  143.                     break;
  144.  
  145.         case Res_Ctrl_Rect_hotspot1_2:                                  /* Rect_hotspot1_2, hotspot */
  146.                     break;
  147.  
  148.         case Res_Ctrl_Rect_hotspot1_3:                                  /* Rect_hotspot1_3, hotspot */
  149.                     break;
  150.  
  151.         case Res_Ctrl_Rect_hotspot1_4:                                  /* Rect_hotspot1_4, hotspot */
  152.                     break;
  153.  
  154.         case Res_Ctrl_Rect_hotspot1_5:                                  /* Rect_hotspot1_5, hotspot */
  155.                     break;
  156.  
  157.         case Res_Ctrl_Rect_hotspot1_6:                                  /* Rect_hotspot1_6, hotspot */
  158.                     break;
  159.  
  160.         case Res_Ctrl_Rect_hotspot1_7:                                  /* Rect_hotspot1_7, hotspot */
  161.                     break;
  162.  
  163.         case Res_Ctrl_Rect_hotspot1_8:                                  /* Rect_hotspot1_8, hotspot */
  164.                     break;
  165.  
  166.         case Res_Ctrl_Rect_hotspot2_1:                                  /* Rect_hotspot2_1, hotspot */
  167.                     break;
  168.  
  169.         case Res_Ctrl_Rect_hotspot2_2:                                  /* Rect_hotspot2_2, hotspot */
  170.                     break;
  171.  
  172.         case Res_Ctrl_Rect_hotspot2_3:                                  /* Rect_hotspot2_3, hotspot */
  173.                     break;
  174.  
  175.         case Res_Ctrl_Rect_hotspot2_4:                                  /* Rect_hotspot2_4, hotspot */
  176.                     break;
  177.  
  178.         case Res_Ctrl_Rect_hotspot2_5:                                  /* Rect_hotspot2_5, hotspot */
  179.                     break;
  180.  
  181.         case Res_Ctrl_Rect_hotspot2_6:                                  /* Rect_hotspot2_6, hotspot */
  182.                     break;
  183.  
  184.         case Res_Ctrl_Rect_hotspot2_7:                                  /* Rect_hotspot2_7, hotspot */
  185.                     break;
  186.  
  187.         case Res_Ctrl_Rect_hotspot2_8:                                  /* Rect_hotspot2_8, hotspot */
  188.                     break;
  189.  
  190.         case Res_Ctrl_Rect_hotspot3_1:                                  /* Rect_hotspot3_1, hotspot */
  191.                     break;
  192.  
  193.         case Res_Ctrl_Rect_hotspot3_2:                                  /* Rect_hotspot3_2, hotspot */
  194.                     break;
  195.  
  196.         case Res_Ctrl_Rect_hotspot3_3:                                  /* Rect_hotspot3_3, hotspot */
  197.                     break;
  198.  
  199.         case Res_Ctrl_Rect_hotspot3_4:                                  /* Rect_hotspot3_4, hotspot */
  200.                     break;
  201.  
  202.         case Res_Ctrl_Rect_hotspot3_5:                                  /* Rect_hotspot3_5, hotspot */
  203.                     break;
  204.  
  205.         case Res_Ctrl_Rect_hotspot3_6:                                  /* Rect_hotspot3_6, hotspot */
  206.                     break;
  207.  
  208.         case Res_Ctrl_Rect_hotspot3_7:                                  /* Rect_hotspot3_7, hotspot */
  209.                     break;
  210.  
  211.         case Res_Ctrl_Rect_hotspot3_8:                                  /* Rect_hotspot3_8, hotspot */
  212.                     break;
  213.  
  214.         case Res_Ctrl_Rect_hotspot4_1:                                  /* Rect_hotspot4_1, hotspot */
  215.                     break;
  216.  
  217.         case Res_Ctrl_Rect_hotspot4_2:                                  /* Rect_hotspot4_2, hotspot */
  218.                     break;
  219.  
  220.         case Res_Ctrl_Rect_hotspot4_3:                                  /* Rect_hotspot4_3, hotspot */
  221.                     break;
  222.  
  223.         case Res_Ctrl_Rect_hotspot4_4:                                  /* Rect_hotspot4_4, hotspot */
  224.                     break;
  225.  
  226.         case Res_Ctrl_Rect_hotspot4_52:                                 /* Rect_hotspot4_52, hotspot */
  227.                     break;
  228.  
  229.         case Res_Ctrl_Rect_hotspot4_6:                                  /* Rect_hotspot4_6, hotspot */
  230.                     break;
  231.  
  232.         case Res_Ctrl_Rect_hotspot4_7:                                  /* Rect_hotspot4_7, hotspot */
  233.                     break;
  234.  
  235.         case Res_Ctrl_Rect_hotspot4_8:                                  /* Rect_hotspot4_8, hotspot */
  236.                     break;
  237.  
  238.         case Res_Ctrl_Rect_hotspot5_1:                                  /* Rect_hotspot5_1, hotspot */
  239.                     break;
  240.  
  241.         case Res_Ctrl_Rect_hotspot5_2:                                  /* Rect_hotspot5_2, hotspot */
  242.                     break;
  243.  
  244.         case Res_Ctrl_Rect_hotspot5_3:                                  /* Rect_hotspot5_3, hotspot */
  245.                     break;
  246.  
  247.         case Res_Ctrl_Rect_hotspot5_4:                                  /* Rect_hotspot5_4, hotspot */
  248.                     break;
  249.  
  250.         case Res_Ctrl_Rect_hotspot5_5:                                  /* Rect_hotspot5_5, hotspot */
  251.                     break;
  252.  
  253.         case Res_Ctrl_Rect_hotspot5_6:                                  /* Rect_hotspot5_6, hotspot */
  254.                     break;
  255.  
  256.         case Res_Ctrl_Rect_hotspot5_7:                                  /* Rect_hotspot5_7, hotspot */
  257.                     break;
  258.  
  259.         case Res_Ctrl_Rect_hotspot5_8:                                  /* Rect_hotspot5_8, hotspot */
  260.                     break;
  261.  
  262.         case Res_Ctrl_Rect_hotspot6_1:                                  /* Rect_hotspot6_1, hotspot */
  263.                     break;
  264.  
  265.         case Res_Ctrl_Rect_hotspot6_2:                                  /* Rect_hotspot6_2, hotspot */
  266.                     break;
  267.  
  268.         case Res_Ctrl_Rect_hotspot6_3:                                  /* Rect_hotspot6_3, hotspot */
  269.                     break;
  270.  
  271.         case Res_Ctrl_Rect_hotspot6_4:                                  /* Rect_hotspot6_4, hotspot */
  272.                     break;
  273.  
  274.         case Res_Ctrl_Rect_hotspot6_5:                                  /* Rect_hotspot6_5, hotspot */
  275.                     break;
  276.  
  277.         case Res_Ctrl_Rect_hotspot6_6:                                  /* Rect_hotspot6_6, hotspot */
  278.                     break;
  279.  
  280.         case Res_Ctrl_Rect_hotspot6_7:                                  /* Rect_hotspot6_7, hotspot */
  281.                     break;
  282.  
  283.         case Res_Ctrl_Rect_hotspot6_8:                                  /* Rect_hotspot6_8, hotspot */
  284.                     break;
  285.  
  286.         case 0:                                                                 /* Handle an empty case */
  287.                     break;                                                         /* end of 0 */
  288.         default:                                                                 /* allow other buttons, trap for debug */
  289.                     break;                                                         /* end of otherwise */
  290. }                                                                                /* end of switch */
  291.  
  292. }                                                                                /* end of Handle U_DoButton_ */
  293.  
  294. /* ======================================================= */
  295.  
  296. /* Routine: U_DoEvent_Life_4a */
  297. /* Purpose: Handle any special window events */
  298.  
  299. void U_DoEvent_Life_4a(myEvent)
  300. EventRecord        *myEvent;
  301. {                                                                                /* Handle U_DoEvent_ */
  302.  
  303. }                                                                                /* end of Handle U_DoEvent_ */
  304.  
  305.  
  306. /* ======================================================= */
  307.  
  308.  
  309.  
  310.